import request from '@/utils/request'

export default{
    getAllType(){
        return request({
            method:'get',
            url:"/dev-api/goodstype/allType"
        })
    },
    getGoodsType(tid){
        return request({
            method:"get",
            url:"/dev-api/goodstype/getType/",
            params:{tid}
        })
    },
    getGoods(kid){
        return request({
            method:"get",
            url:"/dev-api/goods/allgoods",
            params:{kid}
        })
    },
    getGoodsInfo(gid){
        return request({
            method:"get",
            url:"/dev-api/goods/goodinfo",
            params:{gid}
        })
    },
    searchGoods(gname){
        return request({
            method:"get",
            url:"/dev-api/goods/searchgood",
            params:{gname}
        })
    },
    getLunbo() {
        return request({
            method:"get",
            url:"/dev-api/admin/getlunbo"
        })
    }
}